package com.tt.fashionWebSite.dao.jpa;

import com.tt.fashionWebSite.dao.ThongTinTuVanDao;
import com.tt.fashionWebSite.domain.ThongTinTuVan;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by isoft-work 5 on 12/28/2014.
 */
@Repository("thongTinTuVan")
public class ThongTinTuVanJpaDao extends GenericJpaDao<ThongTinTuVan, String> implements ThongTinTuVanDao {
   public ThongTinTuVanJpaDao() {
      super(ThongTinTuVan.class);
   }

   public List<ThongTinTuVan> getSupposed() {
      return getEntityManager().createNamedQuery(ThongTinTuVan.GET_INFO_SUPPOSE, ThongTinTuVan.class).getResultList();
   }
}
